package run.microservice.stock.listener;

import com.mybatisflex.annotation.InsertListener;
import run.microservice.stock.model.entity.BaseEntity;

/**
 * @author lunfy
 * @description:
 * @date 2024-04-22 15:44
 */
public class BaseInsertListener implements InsertListener {
    @Override
    public void onInsert(Object o) {
        BaseEntity baseEntity = (BaseEntity) o;
        baseEntity.setDeleted(0);
        baseEntity.setCreatedBy(1L);
    }
}
